/*
 * @Author: 康家赫 13349195+kangjiahe666@user.noreply.gitee.com
 * @Date: 2024-05-18 19:58:13
 * @LastEditors: 康家赫 13349195+kangjiahe666@user.noreply.gitee.com
 * @LastEditTime: 2024-05-20 12:49:46
 * @FilePath: \MDK-ARMd:\Desktop\mcu_practice\imu_-eie_stm32experience_kjh\mcu_experience1\kjh_usingcode\temp_warning.c
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "stm32F1xx_hal.h"
#include "stm32F1xx_hal_conf.h"
#include "DS18b20.h"
#include "oled.h"
#include "beep.h"
#include "controler.h"
#include "OS.h"
#include "delay.h"
void temp_warning()
{
	OLED_ShowString(0, 20, "                ", 16);
	float F;
	unsigned int a;
	OLED_Clear();

	while (1)
	{
		F = Read_Temperature();
		a = (signed int)F;
		OLED_ShowSignum(72, 36, a, 3, 24);
		if (a > 30)
		{
			tips_1();
			delay_ms(100);
		}
		OLED_Refresh();
		delay_ms(100);
	}
}
